package com.huluobo.a2112mvvmdouyindemo.cart;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm_base.bean.CartBeanResult;
import com.huluobo.mvvm_base.viewmodel.BaseViewModel;

/**
 * Created by LC on 2024/4/9.
 */
public class CartViewModel extends BaseViewModel<CartRepo> {
    MutableLiveData<CartBeanResult> queryCartListSuccess = new MutableLiveData<>();

    MutableLiveData<String> queryCartListFailed = new MutableLiveData<>();

    public void queryCartList() {
        repo.queryCart(queryCartListSuccess, queryCartListFailed);
    }

    @Override
    protected CartRepo createRepo() {
        return new CartRepo();
    }
}
